package com.lmaye.design.patterns.ood.isp.comply;

/**
 * -- 测试
 *
 * <pre>
 *     1. 遵循接口隔离原则；
 *     通过接口的拆分，解决了接口实现类不需重复实现接口的所有非使用的方法。
 * </pre>
 *
 * @author lmay.Zhou
 * @date 2020/11/12 12:15 星期四
 * @qq 379839355
 * @email lmay@lmaye.com
 * @since JDK1.8
 */
public class Test {
    public static void main(String[] args) {
        A a = new A();
        a.operation1(new C());
        a.operation2(new C());
        a.operation3(new C());

        B b = new B();
        b.operation1(new D());
        b.operation4(new D());
        b.operation5(new D());
    }
}
